/* �ҵ�����ҳ����ʽ */
.my-downloads-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
  }
  
  /* ��ǩҳ��ʽ */
  .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
  }
  
  .tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .tab-btn:hover {
    color: #333;
  }
  
  .tab-btn.active {
    color: #2563eb;
    font-weight: 600;
  }
  
  .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
  }
  
  /* �������� */
  .tab-content {
    min-height: 400px;
  }
  
  /* ��Դ�б���ʽ */
  .resources-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .resource-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .resource-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
  
  .resource-cover {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
  }
  
  .resource-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .resource-info {
    flex: 1;
  }
  
  .resource-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 10px 0;
    white-space: nowrap;      /* ��ֹ���� */
    overflow: hidden;         /* ����������� */
    text-overflow: ellipsis;  /* ����������ʾ... */
    max-width: 200px;        /* �������ȣ��������� */
}

.resource-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;    /* ȷ��ʡ�Ժ���Ч */
    max-width: 100%;          /* ��ֹ�������� */
}

.resource-title a:hover {
    color: #2563eb;
}
  
  .resource-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
  }
  
  .purchase-time,
  .points-paid {
    display: inline-block;
  }
  
  .points-paid {
    color: #059669;
    font-weight: 500;
  }
  
  .resource-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .download-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
  }
  
  .download-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
  }
  
  .download-btn.primary {
    background-color: #2563eb;
  }
  
  .download-btn.primary:hover {
    background-color: #1d4ed8;
  }
  
  .icon-download::before {
    content: '?';
    font-size: 16px;
  }
  
  .detail-link {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
  }
  
  .detail-link:hover {
    border-color: #2563eb;
    color: #2563eb;
  }
  
  /* ��ʷ��¼�б���ʽ */
  .history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  
  .history-item:hover {
    background-color: #f9fafb;
  }
  
  .item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }
  
  .item-time {
    font-size: 14px;
    color: #666;
  }
  
  .item-detail {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .points {
    font-size: 15px;
    font-weight: 500;
    color: #dc2626;
  }
  
  .points.free {
    color: #059669;
  }
  
  .network-info {
    font-size: 14px;
    color: #666;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 4px;
  }
  
  /* ���ص�����ʽ */
  .download-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .download-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .download-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
  }
  
  .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
  }
  
  .close-btn:hover {
    background-color: #f3f4f6;
    color: #333;
  }
  
  .download-modal-content {
    padding: 20px;
  }
  
  .download-modal-content .resource-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .download-modal-content .resource-info img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
  }
  
  .download-modal-content .resource-info span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }
  
  .download-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .download-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .download-option label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
  }
  
  .network-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: white;
    cursor: pointer;
  }
  
  .network-select:focus {
    outline: none;
    border-color: #2563eb;
  }
  
  .download-btn.network-download {
    background-color: #059669;
  }
  
  .download-btn.network-download:hover:not(:disabled) {
    background-color: #047857;
  }
  
  .download-btn.public-download {
    background-color: #7c3aed;
  }
  
  .download-btn.public-download:hover {
    background-color: #6d28d9;
  }
  
  /* ��ҳ��ʽ */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
  }
  
  .pagination button {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .pagination button:hover:not(:disabled) {
    border-color: #2563eb;
    color: #2563eb;
  }
  
  .pagination button:disabled {
    color: #9ca3af;
    cursor: not-allowed;
  }
  
  .pagination span {
    font-size: 14px;
    color: #666;
  }
  
  /* ��״̬ */
  .empty-state {
    text-align: center;
    padding: 60px 20px;
  }
  
  .empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
  }
  
  .browse-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .browse-link:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
  }
  
  /* ����״̬ */
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .loading-container p {
    margin-top: 16px;
    font-size: 16px;
    color: #666;
  }
  
  /* ������Ϣ */
  .error-message {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
  }
  
  /* ��Ӧʽ��� */
  @media (max-width: 768px) {
    .my-downloads-container {
      padding: 15px;
    }
    
    .page-title {
      font-size: 24px;
      margin-bottom: 20px;
    }
  }
  
  /* 在文件末尾添加分页容器样式 */

  .pagination-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 20px 0;
  }

  .pagination-container .ant-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
  }